package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 文件名称： com.ledi.guns.common.persistence.model.PayRecordAlipay.java<br/>
 * 初始作者： 钟小平<br/>
 * 创建日期： 2018年7月17日<br/>
 * 功能说明： 支付宝支付记录<br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者 日期 修改内容<br/>
 * ================================================<br/>
 * Copyright (乐迪教育科技有限公司-幼儿事业部) 2017-2018.All rights reserved.<br/>
 */
@TableName("t_pay_record_alipay")
public class PayRecordAlipay extends Model<PayRecordAlipay> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@TableField("order_id")
	private Long orderId;
	/**
	 * 付款时间
	 */
	@TableField("pay_time")
	private Date payTime;
	/**
	 * 支付宝订单号
	 */
	@TableField("alipay_transaction_id")
	private String alipayTransactionId;
	@TableField("order_status")
	private Integer orderStatus;
	@TableField("create_time")
	private Date createTime;
	@TableField("is_delete")
	private Integer isDelete;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public Long getOrderId() {

		return orderId;
	}

	public void setOrderId(Long orderId) {

		this.orderId = orderId;
	}

	public Date getPayTime() {

		return payTime;
	}

	public void setPayTime(Date payTime) {

		this.payTime = payTime;
	}

	public String getAlipayTransactionId() {

		return alipayTransactionId;
	}

	public void setAlipayTransactionId(String alipayTransactionId) {

		this.alipayTransactionId = alipayTransactionId;
	}

	public Integer getOrderStatus() {

		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {

		this.orderStatus = orderStatus;
	}

	public Date getCreateTime() {

		return createTime;
	}

	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	public Integer getIsDelete() {

		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {

		this.isDelete = isDelete;
	}

	@Override
	protected Serializable pkVal() {

		return id;
	}

	@Override
	public String toString() {

		return "CustomerPayRecordAlipay{" +
				"id=" + id +
				", orderId=" + orderId +
				", payTime=" + payTime +
				", alipayTransactionId=" + alipayTransactionId +
				", orderStatus=" + orderStatus +
				", createTime=" + createTime +
				", isDelete=" + isDelete +
				"}";
	}
}
